package com.strato.mybatis.generator.v1_2_0.config;

import java.util.HashMap;
import java.util.Map;

public class Database {

	private String name;
	
	private String driver;
	
	private String url;
	
	private String username;
	
	private String password;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		Map<Object,Object> map=new HashMap<Object,Object>();
		map.put("name", name);
		map.put("driver", driver);
		map.put("url", url);
		map.put("username", username);
		map.put("password", password);
		return map.toString();
	}
	
}
